﻿using _2_NovaAdmin.Application.Services.Role.Dto;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2_NovaAdmin.Application.Services.Role
{
    public class RoleService : IDynamicController, IScopedDependency
    {
        private readonly ISqlSugarClient _db;
        public RoleService(ISqlSugarClient db)
        {
            _db = db;
        }

        public async Task<ApiResult<List<DtoRoleResponse>>> test()
        {
            var list = _db.Queryable<DtoRoleResponse>().ToList();
            return ApiResult<List<DtoRoleResponse>>.Ok(list);
        }
    }
}
